package com.myBase.core.common.util;

public class Constants {
    // 昵称存在合法标识：0可用,1已经存在、2昵称非法
    public final static String NKNAME_NOTEXISTS = "0";

    public final static String NKNAME_ISEXISTS = "1";

    public final static String NKNAME_ILLEGAL = "2";

    // 手机状态码0表示未绑定，1表示已绑定，2表示认证失败
    public final static String MOBILE_EXISTS = "0";

    public final static String MOBILE_ISEXISTS = "1";

    // 99系统错误
    public final static String SYSTEM_ERRORCODE = "99";

    // 注册发送验证码系统标识
    public final static String PHONE_VCODEREG_Reg = "phoneVCodeReg";

    // 注册发送验证码系统标识，用于找回登录密码
    public final static String PHONE_VCODEREG_NEWBANK = "phoneVCodeNewBank";

    // 注册发送验证码系统标识
    public final static String PHONE_VCODEREG_PAYPWD = "phoneVCodePayPwd";

    // 注册发送验证码系统标识
    public final static String PHONE_VCODEREG_QUESTION = "phoneVCodePayQuestion";

    // 注册发送验证码系统标识
    public final static String PHONE_VCODE_FINDPAW = "phoneVCodeFindPaw";

    // 手机验证码，用于修改邮箱
    public final static String PHONE_VCODE_UPDATE_EMAIL = "phoneVCodeUpdateEmail-";

    // 手机验证码，用于修改手机
    public final static String PHONE_VCODE_UPDATE_MOBILE = "phoneVCodeUpdateMobile-";

    // 新手机验证码，当用新手机替换手机时使用
    public final static String PHONE_VCODE_UPDATE_NEWMOBILE = "phoneVCodeUpdatenNewMobile-";

    // 注册发送验证码系统标识，用于找回支付密码
    public final static String PHONE_VCODE_FIND_PAYPAW = "phoneVCodeFindPayPaw";

    // 手机验证码，用于修改银行卡
    public final static String PHONE_VCODE_MODIFY_CARD = "phoneVCodeModifyCard";

    // 绑定微信用户发送验证码系统标识
    public final static String PHONE_VCODEREG_BindWx = "phoneVCodeWx";

    //验证支付密码Code
    public final static String CHECK_VCODE_PAY_NUM = "checkPayNum";

    //验证支付密码次数
    public final static int CHECK_PAY_NUM = 5;

    //验证支付密码超时时间
    public final static int CHECK_PAY_NUM_TIME = 30 * 60;

    // 验证同一ip一分钟（可配）内注册验证码请求20（可配）次以上时，返回1表示恶意
    public final static String CHECK_MAILCE = "1";

    public final static String CHECK_KINDESS = "0";

    public final static String REQUEST_IP_NUM = "REQIP-";

    // 用户错误输入次数
    public final static String FAILE_NUM_PRE = "CHECKNUM-";

    // 设置错误输入多少次，用户需要输入验证码
    public final static int CHECK_VERFY_CODE = 2;

    // 设置错误输入多少次，帐户被锁定
    public final static int LOCK_FAILE_NUM = 5;

    // 设置锁定时间 ，单位分钟
    public final static String USER_LOCK_TIME = "5";

    // 用户锁定存储在redis前缀
    public final static String USER_LOCK_PRE = "USERLOCK-";

    // 用户登录失败次数存储在redis前缀
    public final static String FAIL_LOGIN_USERIDPRE = "FAILLOGUSERID-";

    //保存信息
    public final static String USERIDPRE = "USERID-";

    //登录用户token对应的userid
    public final static String USERTOKEN = "TOKEN-";

    //登录用户userid对应的Token
    public final static String USERID_TOKEN_MAPPING = "USERIDTOKENMAPPING-";

    //wireless userId-token mapping
    public final static String WL_USERID_TOKEN_MAPPING = "WL_USERID-";

    // 设置过期时间
    public final static int USER_EXPIRE_TIME = 20 * 60;

    // 用户发送邮件短信次数过期时间
    public final static int USER_SENDMESSAGE_TIME = 60 * 60;

    // 同一ip发送次数过期时间
    public final static int USER_SENDMESSAGE_IP_TIME = 60;

    // 设置发送邮件短信多少次，帐户被锁定
    public final static long SEND_MESSAGE_NUM = 100;

    // 同一ip发送次数
    public final static long SEND_MESSAGE_IP_NUM = 20;

    // 邮箱锁定
    public final static String EMAIL_STATUS_lOCK = "1";

    // 发送邮件次数，用于redis保存前缀
    public final static String SEND_EMAIL_NUM_PRE = "SENDEMAILNUM-";

    // 邮件不存在
    public final static String EMAIL_NOT_EXIST = "2";

    // 发送短信次数，用于redis保存前缀
    public final static String SEND_MOBILE_NUM_PRE = "SENDMOBILENUM-";

    // 同一IP下发送短信次数，用于redis保存前缀
    public final static String SEND_MOBILE_NUM_IP_PRE = "SENDMOBILEIPNUM-";

    // 手机被锁定
    public final static String EMAIL_MOBILE_lOCK = "1";

    // 手机不存在
    public final static String MOBILE_NOT_EXIST = "2";

    // 邮箱找回密码的验证码，用于redis保存前缀
    public final static String EMAIL_FINDPAW_VALICODE_PRE = "EMAILFINDPAW-";

    // 更新邮箱的验证码，用于redis保存前缀
    public final static String EMAIL_UPDATEEMIAL_VALICODE_PRE = "EMAILUPDATEEMAIL-";

    // 邮箱找回密码超时的时间
    public final static int EMAIL_FINDPAW_TIMEOUT = 24 * 60 * 60;

    // 邮箱找回密码，链接过期
    public final static String LINK_EXPIRE = "1";

    // 邮箱找回密码，参数错误
    public final static String LINK_PARS_ERROR = "2";

    // 邮箱找回密码，链接未过期，参数正确
    public final static String LINK_PARS_OK = "0";

    // 银行开修改 申请 的 步骤
    public final static String MODIFY_CARD_STEP = "MODIFY_CARD_STEP-";

    // 验证 用户 密保答案 KEY
    public final static String VALIDATE_USER_ANSWER = "VALIDATE_USER_ANSWER-";

    // 验证 用户 密保答案 ，答错次数
    public final static int VALIDATE_USER_ANSWER_ERROR_COUNT = 5;

    // 验证 用户 密保答案 错误 后的 过期时间
    public final static int VALIDATE_USER_ANSWER_TIME = 20 * 60;

    // 银行开修改 申请,存储 用户上传的 文件 名 ,防止恶意上传文件
    public final static String MODIFY_CARD_IMGAE_NAME = "MODIFY_CARD_IMGAE_NAME-";

    public static final String COMMAND = "command";

    //注册使用手机验证一次，就不需要在验证，除非重新登录。REGIST_ISVERIFY_MOBILE+token
    public final static String REGIST_ISVERIFY_MOBILE = "REGIST_ISVERIFY_MOBILE_NAME-";

    //存放图片验证码随机数前缀
    public final static String RAND_VCODE_PRE = "RANDVCODE-";

    //存放图片验证码随机数前缀
    public final static int RAND_VCODE_TIMEOUT = 10 * 60;

    //用户永久锁定状态码
    public final static int USER_PERMANENT_LOCK = 100;

    //手机验证码
    public final static int PHONE_VCODE_EXPIRETIME = 10 * 60;

    //手机验证码验证错误次数
    public final static String PHONE_VCODE_FAILENUM = "PHONE_VCODE_FAILENUM-";

    //更新登录密码
    public final static String PHONE_VCODE_UPLOGINPWD = "PHONE_VCODE_UPLOGINPWD-";

    //更新支付密码
    public final static String PHONE_VCODE_UPPAYPWD = "PHONE_VCODE_UPPAYPWD-";

    //手机验证验证码
    public final static String PHONE_CHECK = "PHONE_CHECK-";

    //代扣支付验证码
    public final static String PHONE_VCODE_WITHHOLD_CHARGE = "PHONE_VCODE_WITHHOLD_CHARGE-";

    //绑定微信用户
    public final static String PHONE_VCODE_BINDWX = "PHONE_VCODE_BINDWX-";

    //乐购贷支付验证码
    public final static String PHONE_VCODE_CONSUMPTION = "PHONE_VCODE_CONSUMPTION-";

    //每页消息数
    public final static int MESSAGE_PAGESIZE = 20;

    //每页消息数
    public final static String SYSTEM_START_TIME = "2013-09-01";

    //开发环境
    public final static String ENV_DEV = "dev";

    //无线端登录用户userID对应的来源ID
    public final static String WL_USER_SID = "WL_USER_SID-";

    //无线端登录用户token对应的userid
    public final static String WL_USERTOKEN = "WL_TOKEN-";

    //无线端登录用户token对应的userid
    public final static String H5_USERTOKEN = "H5_TOKEN-";

    //ZC_URL
    public final static String ZC_URL = "zc_url";

    //绑卡操作
    public final static String BIND_CARD = "bindCard";

    //改卡操作
    public final static String MODIFY_CARD = "modifyCard";

    //旧版本APP绑卡（没有支付密码）
    public final static String BIND_CARD_OLD_APP = "bindCard_oldApp";

    //支付密码修改手机号
    public final static String UPDATE_PHONE_PAYPWD_KEY = "U_P_PP_K-";

    //支付密码修改手机号
    public final static int UPDATE_PHONE_PAYPWD_EXPIRETIME = 10 * 60;

    // 手机验证码，用于修改手机只通过支付密码
    public final static String PHONE_VCODE_UPDATE_MOBILE_PAYPWD = "phoneVCodeUpdateMobilePayPwd";

    // 手机验证码，用于修改手机只通过4要素
    public final static String PHONE_VCODE_UPDATE_MOBILE_4 = "phoneVCodeUpdateMobile4";

    // 手机验证码，用于修改手机只通过4要素,key。
    public final static String UPDATE_MOBILE_NUM_4_KEY = "updateMobile4NumKey";

    // 手机验证码，用于修改手机只通过4要素,日期。
    public final static String UPDATE_MOBILE_NUM_4_TIME = "updateMobile4NumTime";

    // 手机验证码，用于修改手机只通过4要素,总次数。
    public final static int UPDATE_MOBILE_NUM_4_ALLNUM = 10;

    // 手机验证码，用于修改手机只通过4要素,过期时间。
    public final static int UPDATE_MOBILE_NUM_4_OUTTIME = 60 * 60 * 24;

    //4要素修改手机号
    public final static String UPDATE_PHONE_4_KEY = "U_P_P4_K-";

    // 手机验证码发送间隔---4要素修改手机
    public final static String PHONE_VCODE_4_UPDATE_PHONE = "PHONE_VCODE_4_UPDATE_PHONE-";

    // 手机验证码发送间隔---4要素修改手机 token存放
    public final static String PHONE_VCODE_4_UPDATE_PHONE_TOKEN = "PHONE_VCODE_4_UPDATE_PHONE_TOKEN-";

    // 手机验证码发送间隔---4要素修改手机 token存放超时时间
    public final static int PHONE_VCODE_4_UPDATE_PHONE_TOKEN_TIMEOUT = 240;

    //手机验证码发送间隔  
    public final static int PHONE_VCODE_4_UPDATE_PHONE_TIMEOUT = 60;

    // 手机验证码，用于白名单验证
    public final static String PHONE_VCODE_WHITELIST = "PHONE_VCODE_WHITELIST-";

    //
    public final static String ALIVE_CHECK_FACECHECK = "ck_001";

    public final static String ALIVE_CHECK_WITHDRAW = "cw_001";
}
